import tab from './tab'
import auth from './auth'
import modal from './modal'
import Toast from '@/components/toast/index.vue';
export default {
  install(Vue) {
    // 页签操作
    Vue.prototype.$tab = tab
    // 认证对象
    Vue.prototype.$auth = auth
    // 模态框对象
    Vue.prototype.$modal = modal
	// const ToastComponent = Vue.extend(Toast);
	// const toastInstance = new ToastComponent();
	
	// // 挂载到 DOM
	// document.body.appendChild(toastInstance.$mount().$el);
	
	// // 添加全局方法
	// Vue.prototype.$toast = (message, duration) => {
	//   toastInstance.show(message, duration);
	// };
  }
}
